import 'package:Smart/utils/screen_unit/gs_screen_util.dart';
import 'package:flutter/material.dart';

import 'package:Smart/res/colors_res.dart';

///分割线
///使用组件：GSDividerLine(vHeightNum:10.w,vColor:ColorsRes.color_2c2c2c);

class GSDividerLine extends StatelessWidget {
  //高度
  final double vHeightNum;
  //颜色
  final Color vColor ;

  ///传值分割线的宽度和颜色
  GSDividerLine({this.vHeightNum, this.vColor});

  @override
  Widget build(BuildContext context) {
    return Divider(
      height: vHeightNum ?? 1.w,
      color: vColor ?? ColorsRes.color_2c2c2c.withOpacity(0.08),
    );
  }
}
